(function(){
    var img1 = document.getElementById("img1");
    var img2 = document.getElementById("img2");
    var img3 = document.getElementById("img3");
    // console.log(img1,img2,img3)
    var arr = [1,2,3,4,5,6,7,8,9,0,"a","b","c","d","e","f"];
    function as(){
        return arr[Math.floor(Math.random()*arr.length)];
    }
    function a(obj){
        setInterval(function(){
            obj.style.backgroundColor = "#"+as()+as()+as()+as()+as()+as();
        },1000)
    }
    a(img1);
    a(img2);
    a(img3);

}())